$controls/header()$
$controls/navigation()$ <script src="scripts/ajax.js"></script>
<script src="scripts/message.js"></script>
<script>
var MessageSize = $Page.user.NormalPermission.MessageSize$;
</script>
<script>
var MessageSize = $Page.user.NormalPermission.MessageSize$;
</script>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="180" valign="top">$controls/drawer()$ </td>
<td width="5"></td>
<td valign="top"><form action="message.aspx" method="POST" name="MessageForm" id="MessageForm" onsubmit="return checknewmessage();">
<input type="hidden" name="token" value="$Token$" />
$controls/tableheader(
      Caption=Caption,
      ElementId="message"
      )$
$if(SendMode)$
<table cellspacing="0" class="inner">
<tr class="forumtd">
<td width="100">收件人</td>
<td><input name="username" type="text" size="30" value="$ReceiverName$">&nbsp;
<select onmousewheel="return false" onchange="this.form.username.value=this.value">
	<option selected="selected" value="">我的好友...</option>
	$Friends:{<option value="$it.Username$">$it.Username$</option>}$
</select>
<select onmousewheel="return false" onchange="this.form.username.value=this.value">
	<option selected="selected" value="">我的Fans...</option>
	$Fans:{<option value="$it.Username$">$it.Username$</option>}$
</select>
<select onmousewheel="return false" onchange="this.form.username.value=this.value">
	<option selected="selected" value="">我的偶像...</option>
	$Idols:{<option value="$it.Username$">$it.Username$</option>}$
</select></td>
</tr>
<tr class="forumno">
<td>标　题</td>
<td><input name="title" type="text" maxlength="100" style="width:99%" value="$Title$">

</td>
</tr>
<tr class="forumno">
<td valign="top">限制<span class="small t1">
<script>document.write(MessageSize);</script></span>个字符</td>
<td><textarea name="body" style="height:170px; width:99%">$Body$</textarea></td>
</tr>
<tr class="forumno">
<td>&nbsp;</td>
<td><input name="contenttype" type="checkbox" class="smallbox" id="contenttype" value="text" checked />
保存到发件箱&nbsp;&nbsp;&nbsp;<input id="contenttype" class="smallbox" type="checkbox" value="text" name="contenttype" />保存到草稿箱</td>
</tr>
<tr class="forumno">
<td>&nbsp;</td>
<td>$if(ShowVerifier)$验证码
<input type='text' name='verification' style='width:50px;' class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" />
<script language='javascript'> document.write("<img src='verifier.aspx?time=", new Date(), "' alt='验证码图片, 看不清字符请点击刷新, 如果是加法运算, 填入计算结果'   style='cursor:hand' onclick=\"this.src = this.src.substring(0, this.src.indexOf('time=')) + 'time=' + new Date()\"/>"); </script>
&nbsp;&nbsp;&nbsp;$endif$
<input name="submit2" type="submit" class="button" value=" 发 送 " /></td>
</tr>
<tr class="forumno">
<td>&nbsp;</td>
<td><div class="comment"><strong>警告</strong>:禁止使用当前短消息系统进行广告宣传、恶意骚扰或发布违法信息!后果自负!<br />
<strong>提示</strong>:请您勿将重要信息保留在草稿箱，为了减轻服务器负担，系统会不定时对用户保留过久的草稿件进行清理! </div></td>
</tr>
</table>
$else$
<table cellspacing="0" class="inner">
<tr class="category forumtd" style="text-align:left">
<td width="50"><input type="checkbox" class="smallbox" onclick="checkallbox(this)" name="checkall" />$if(Recycler)$还原$else$删$endif$</td>
<td width="20">&nbsp;</td>
<td>标题</td>
<td width="120">$if(ShowSender)$发送者$else$接收者$endif$</td>
<td width="150" align="right">时间</td>
</tr>
$Messages:{m|
<tr class="forumtd" style="text-align:left;" id="row$m.Id$">
<td><input type="checkbox" class="smallbox" name="ids" value="$m.Id$" /></td>
<td>$if(m.Readed)$ <img src="{IMGDIR}/icon/readed.gif" alt="." id="icon$m.Id$" /> $else$ <img src="{IMGDIR}/icon/unread.gif" alt="." id="icon$m.Id$" /> $endif$</td>
<td><a href="javascript:read($m.Id$);">$m.Title$</a></td>
<td><a href="{url:profile.aspx?uid=$m.UID$}">$m.Username$</a></td>
<td align="right" class="small">$m.SendTime$</td>
</tr>
}$
</table>
$endif$
      $controls/tablefooter()$
      $if(SendMode)$
      $else$
      $Pager$
<input name="submit" type="submit" class="button" value=" 更 新 " />
$endif$
</form></td>
</tr>
</table>
<script>var MessageSize = $Page.user.NormalPermission.MessageSize$;
</script>
$controls/footer()$